-- GENERATED SPELL FOR [Deathcage Scryer] --


function spell0_16307(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(20793,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16307', 3000, 1)
end

function Sorts_16307(pUnit, Event)
local choix_sorts_16307 = math.random(0, 0)
if choix_sorts_16307 == 0 then
pUnit:RegisterEvent('spell0_16307', 1, 1)
end
end

function mob16307_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16307', math.random(1500, 3000), 1)
end

function mob16307_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16307_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16307_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16307, 1, 'mob16307_Action')
RegisterUnitEvent(16307, 2, 'mob16307_Leave')
RegisterUnitEvent(16307, 3, 'mob16307_Kill')
RegisterUnitEvent(16307, 4, 'mob16307_Die')
